home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Workspace / Briefcase / Source / MultDoc.h < prev    next >
Text File  |  1992-08-10  |  2KB  |  82 lines

  1. #import <appkit/Responder.h>
  2.  
  3. /* Version 0.9b            Apr-19-92        First Public Release    */
  4. /* Version 0.95b        Apr-29-92        Multiple Save Types        */
  5. /* Version 1.0b            Aug-10-92        Minor Bug Fixes            */
  6.  
  7. @interface MultDoc : Responder
  8. {
  9.     id         view;                /* the document's View */
  10.     id         window;                /* the window the View is in */
  11.     id         printInfo;            /* Print Margins etc. */
  12.     char     *name;                /* the name of the document */
  13.     char     *directory;            /* the directory it is in */
  14.     BOOL     haveSavedDocument;    /* whether document has associated disk file */
  15.     BOOL    dirty;                /* Whether or not the document needs saving */
  16.     BOOL    empty;                /* is the document empty? */
  17. }
  18.  
  19. /* Factory methods */
  20.  
  21. + initialize;
  22. + setExtension:(const char *)newExtension;
  23. + (const char *)extension;
  24. + setDefault:(const char *)newDefault;
  25. + (const char *)default;
  26.  
  27. + (NXZone *)newZone;
  28.  
  29. /* Factory Creation Methods */
  30.  
  31. + new;
  32. + newFromZone:(NXZone *)zone;
  33. + newFromFile:(const char *)file;
  34. - instanceAwake;
  35. - setUpNib;
  36.  
  37. - free;
  38.  
  39. /* Public methods */
  40.  
  41. - view;
  42. - printInfo;
  43. - (BOOL)isEmpty;
  44. - setEmpty:(BOOL)flag;
  45. - (BOOL)hasSavedDocument;
  46. - setSavedDocument:(BOOL)flag;
  47. - (BOOL)needsSaving;
  48. - dirty:(BOOL)flag;
  49.  
  50. - changeLayout:sender;
  51.  
  52. /* Target/Action methods */
  53.  
  54. - save:sender;
  55. - saveAs:sender;
  56. - revertToSaved:sender;
  57.  
  58. /* Document name and file handling methods */
  59.  
  60. - (const char *)fileName;
  61. - (const char *)directory;
  62. - (const char *)name;
  63. - setName:(const char *)name andDirectory:(const char *)directory;
  64. - setName:(const char *)name;
  65. - save;
  66.  
  67. /* Window delegate methods */
  68.  
  69. - windowWillClose:sender;
  70. - windowDidBecomeMain:sender;
  71. - windowWillMiniaturize:sender toMiniwindow:counterpart;
  72.  
  73. /* Text delegate methods */
  74.  
  75. - textDidGetKeys:sender isEmpty:(BOOL)flag;
  76.  
  77. /* Menu command validation method */
  78.  
  79. - (BOOL)validateCommand:menuCell;
  80.  
  81. @end
  82.